$OpenBSD: patch-cmake_modules_FindPoppler_cmake,v 1.2 2015/07/03 15:43:12 zhuk Exp $
--- cmake/modules/FindPoppler.cmake.orig	Wed Apr  1 15:27:00 2015
+++ cmake/modules/FindPoppler.cmake	Mon Apr 27 00:31:55 2015
@@ -60,6 +60,10 @@ endif()
 if (POPPLER_FOUND)
   include(CheckCXXSourceCompiles)
 
+  # Unbreak Qt4 linking after QT_USE_IMPORTED_TARGETS set in KDE config
+  set(QT_USE_IMPORTED_TARGETS FALSE)
+  find_package(Qt4)
+
   # check whether we're using poppler 0.6
   set(CMAKE_REQUIRED_INCLUDES ${POPPLER_INCLUDE_DIR} ${QT_INCLUDE_DIR})
   set(CMAKE_REQUIRED_LIBRARIES ${POPPLER_LIBRARY} ${POPPLER_CORE_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY})
